package com.bruce.algorithm.leetcode.linklist;

/**
 * @author luotuan
 * @link https://leetcode-cn.com/problems/delete-node-in-a-linked-list/submissions/
 * @Description   237. 删除链表中的节点
 * @create 2020-07-17 17:33
 **/
public class LinkListDeleteNode {
    public void deleteNode(ListNode node) {
        node.val = node.next.val;
        node.next = node.next.next;
    }
}
